package com.usian.service.impl;

import com.usian.mapper.UserMapper;
import com.usian.mapper.ZhuceMapper;
import com.usian.pojo.User;
import com.usian.pojo.Zhuce;
import com.usian.service.UserService;
import com.usian.service.ZhuceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZhuceServiceImpl implements ZhuceService {

    @Autowired
    private ZhuceMapper zhuceMapper;
    @Override
    public List<Zhuce> findAll() {
        return zhuceMapper.findAll();
    }

    @Override
    public List<Zhuce> findZhuce(Zhuce zhuce) {
        return zhuceMapper.findZhuce(zhuce);
    }

    @Override
    public void addZhuce(Zhuce zhuce) {
        zhuceMapper.addZhuce(zhuce);
    }

    @Override
    public void editZhuce(Zhuce zhuce) {
        zhuceMapper.editZhuce(zhuce);
    }

    @Override
    public User editId(Integer id) {
        return zhuceMapper.editId(id);
    }

    @Override
    public void del(Integer id) {
        zhuceMapper.del(id);
    }
}
